package com.webfinal.backsystem.dao;

import com.webfinal.backsystem.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    int deleteByPrimaryKey(Integer shoppingCartId);

    int insert(ShoppingCart record);

    ShoppingCart selectByPrimaryKey(Integer shoppingCartId);

    List<ShoppingCart> selectAll();

    int updateByPrimaryKey(ShoppingCart record);

    List<ShoppingCart> selectByUserId(int userId);

    int deleteByUserId(int userId);
}